package edu.unr.cater.npap.server.locator;

import com.google.web.bindery.requestfactory.shared.Locator;
import edu.unr.cater.npap.client.domain.AnalysisConclusion;
import org.springframework.roo.addon.gwt.RooGwtLocator;
import org.springframework.stereotype.Component;

@RooGwtLocator("edu.unr.cater.npap.client.domain.AnalysisConclusion")
@Component
public class AnalysisConclusionLocator extends Locator<AnalysisConclusion, Integer> {

    public AnalysisConclusion create(Class<? extends edu.unr.cater.npap.client.domain.AnalysisConclusion> clazz) {
        return new AnalysisConclusion();
    }

    public AnalysisConclusion find(Class<? extends edu.unr.cater.npap.client.domain.AnalysisConclusion> clazz, Integer id) {
        return AnalysisConclusion.findAnalysisConclusion(id);
    }

    public Class<edu.unr.cater.npap.client.domain.AnalysisConclusion> getDomainType() {
        return AnalysisConclusion.class;
    }

    public Integer getId(AnalysisConclusion analysisConclusion) {
        return analysisConclusion.getConclusionId();
    }

    public Class<java.lang.Integer> getIdType() {
        return Integer.class;
    }

    public Object getVersion(AnalysisConclusion analysisConclusion) {
        return analysisConclusion.getVersion();
    }
}
